#ifndef MYCOIN_H
#define MYCOIN_H
#include<QTimer>
#include <QPushButton>

class mycoin : public QPushButton
{
    Q_OBJECT
public:
    //explicit mycoin(QWidget *parent = nullptr);
     mycoin(QString btnImg);

     int posX; //x坐标
     int posY; //y坐标
     bool flag; //正反标志
     int min = 1;
     int max =8;

     void changeFlag();

     QTimer * timer1;
     QTimer * timer2;
     bool isWin = false;
    void mousePressEvent(QMouseEvent *e);

signals:

public slots:
};

#endif // MYCOIN_H
